#!/bin/bash

export CFLAGS=`root-config --cflags`
export LDFLAGS=`root-config --ldflags --libs`

g++ ${CFLAGS} -c ${1}.cxx
g++ -o ${1} ${1}.o ${LDFLAGS} -L./ -lTrigger 

rm ${1}.o
